package mtt.us.client.views.login.link;

import mtt.us.client.views.login.link.events.ShowLoginViewEvent;
import mtt.us.hmvcFramework.client.hmvc.events.AddViewEvent;
import hmvc4gwt.client.controller.Controller;
import hmvc4gwt.client.event.HmvcEvent;
import hmvc4gwt.client.event.HmvcEventListener;

public class LoginLinkController extends Controller implements HmvcEventListener {
	
	public void doInit() {
		register(ShowLoginViewEvent.class, this);
	}

	public void handleEvent(HmvcEvent event) {
		
		if (event instanceof ShowLoginViewEvent) {
			
			fireEvent(new AddViewEvent(getView()), true, false, false);
			
		}
	}

}
